import httpFetch from 'share/httpFetch'
import config from 'config'
import errorMessage from 'share/errorMessage';

export default {
  //获取当前登录用户已分配列表
  getVisibleReport(){
    let url = `${config.baseUrl}/api/report/lines/user/report/findLines`;
    return httpFetch.get(url)
  },

  //获取当前 单条 报表副本 信息
  getAllotReportDetail(reportLineOID){
    let url = `${config.baseUrl}/api/report/line/${reportLineOID}`;
    return httpFetch.get(url)
  },

  //获取报表提示信息
  getReportNote(code){
    return httpFetch.get(`${config.baseUrl}/api/report/deprecate/code?deReportCode=${code}`)
      .catch(err => {
        errorMessage(err.response);
        throw err;
      })
  },
}
